package com.heima.feign;


import com.heima.model.article.pojos.ApAuthor;
import com.heima.model.common.dtos.ResponseResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient("leadnews-article")
public interface ArticleFeign {

    @GetMapping("/apauth/find/{id}")
    ApAuthor findById(@PathVariable("id") Integer id);

    @PostMapping("/apauth/save")
    ResponseResult saveApAuther(@RequestBody ApAuthor apAuthor);
}
